<?php
class tagScript extends tagControl
{
	var $text = "";
	var $type = "text/javascript";

	function Render($writer)
	{
		$writer->Write("<script");
		if ( isset( $this->attributes['src'] ) )
		{
			$writer->Write(" src=\"".$this->attributes['src']."\"");
		}

		$writer->Write(" type=\"$this->type\">");
		if ( !empty($this->text) )
			$writer->Write("\n$this->text\n");

		$writer->Write("</script>\n");
	}
}
?>
